/**
 * 
 */
package br.com.ac.fatureweb.view;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;

import br.com.ac.fatureweb.integration.enums.EnumStatus;
import br.com.ac.fatureweb.integration.enums.EnumTypeCadastrador;
import br.com.ac.fatureweb.model.Leiturista;
import br.com.ac.fatureweb.service.NgcLeituristaBean;
import br.com.ac.fatureweb.utilitary.CrudDefaultBean;

/**
 * @author aldivone
 *
 */
@Named
@ViewScoped
public class LeituristaBean extends
		CrudDefaultBean<Leiturista, NgcLeituristaBean> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5495677845057406973L;

	@Inject
	private NgcLeituristaBean ngcLeituristaBean;

	@PostConstruct
	public void inicialize() {
		setService(ngcLeituristaBean);
	}

	/**
	 * 
	 */
	public LeituristaBean() {
		super();
	}

	/**
	 * 
	 * @return
	 */
	public List<EnumTypeCadastrador> getLstEnumTypeCadastrador() {
		return Arrays.asList(EnumTypeCadastrador.values());
	}

	/**
	 * 
	 * @return
	 */
	public List<EnumStatus> getLstEnumStatus() {
		List<EnumStatus> lstEnumStatus = new ArrayList<EnumStatus>();
		lstEnumStatus.add(EnumStatus.ATIVO);
		lstEnumStatus.add(EnumStatus.INATIVO);

		return lstEnumStatus;
	}

}
